<html>
	<head>
		<title>Ontask <g:layoutTitle default="Welcome" /></title>
		<link rel="stylesheet" href="${createLinkTo(dir:'css',file:'reset-fonts-grids.css')}"/>
		<link rel="stylesheet" href="${createLinkTo(dir:'css',file:'ontask.css')}"/>
		<link rel="shortcut icon" href="${createLinkTo(file:'favicon.ico')}" />
		<g:layoutHead />
		<g:javascript library="application" />	
		
		<meta name="description" content="Ontask grails test app" />
		<meta name="keywords" content="groovy,grails,tasks" />
		<meta name="robots" content="index,follow" />
					
	</head>
	<body>
	<div id="doc3" class="yui-t4"> 
	    <div id="hd">
						
			  <div id="tabs">
			    <ul>
     			  <g:if test="${session.account}">
                    <li id="${request.requestURI =~ /account/ ? 'current' : 'notcurrent'}"><a href="<g:createLink controller='account' action='show'/>">Account</a></li>
                    <li id="${request.requestURI =~ /task/ ? 'current' : 'notcurrent'}"><a href="<g:createLink controller='task' action='list'/>">Tasks</a></li>
			      	<li id="${request.requestURI =~ /login/ ? 'current' : 'notcurrent'}"><a href="<g:createLink controller='login' action='logout'/>">Logout</a></li>
			      </g:if>
			      <g:else>
			        <li id="${request.requestURI =~ /login/ ? 'current' : 'notcurrent'}"><a href="<g:createLink controller='login' action='login'/>">Login</a></li>
                    <li id="${request.requestURI =~ /login/ ? 'current' : 'notcurrent'}"><a href="<g:createLink controller='account' action='signup'/>">Sign-up</a></li>
			      </g:else>
			    </ul>
			  </div>
			
		</div>  
	   <div id="bd"> <!-- start body -->
	   
	  		<div id="yui-main"> 
	        	<div class="yui-b">
	        		<g:if test="${flash.message}">
	        			<div id="flash">
	        				${flash.message}
	        			</div>
	        		</g:if>
	        	
		        	<g:layoutBody />		
	        	</div> 
	      	</div> 

	   </div>  <!-- end body -->
	</div> 
		
	</body>	

</html>